/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Servlets;
import javax.servlet.http.Cookie;
import java.util.*;
/**
 *
 * @author Don
 */
public class Cookies {
    
        public Hashtable cookieTable (Cookie[] cookies) { 
               Hashtable cookieTable = new Hashtable();
            if (cookies != null){
            for(int i=0; i<cookies.length; i++)
                cookieTable.put(cookies[i].getName(), cookies[i]);
                }
            return cookieTable;
        }
}
